1: | plus(s(s(x)),y) | → s(plus(x,s(y))) | |
2: | plus(x,s(s(y))) | → s(plus(s(x),y)) | |
3: | plus(s(0),y) | → s(y) | |
4: | plus(0,y) | → y | |
5: | ack(0,y) | → s(y) | |
6: | ack(s(x),0) | → ack(x,s(0)) | |
7: | ack(s(x),s(y)) | → ack(x,plus(y,ack(s(x),y))) | |
8: | PLUS(s(s(x)),y) | → PLUS(x,s(y)) | |
9: | PLUS(x,s(s(y))) | → PLUS(s(x),y) | |
10: | ACK(s(x),0) | → ACK(x,s(0)) | |
11: | ACK(s(x),s(y)) | → ACK(x,plus(y,ack(s(x),y))) | |
12: | ACK(s(x),s(y)) | → PLUS(y,ack(s(x),y)) | |
13: | ACK(s(x),s(y)) | → ACK(s(x),y) | |